import request from "../utils/request.js"


//房东签约：房东房屋列表
export function houselist(data) {
	return request({
		url: "/house/house/list",
		data
	})
}
//房东签约：房东房屋
export function housedetail(id) {
	return request({
		url: `/house/house/list/${id}`
	})
}

//房东签约：房东房屋列表
export function roomlist(data) {
	return request({
		url: "/house/house/room/list",
		data
	})
}
//房东房屋详情
export function detail(data) {
	return request({
		url: "/house/house/detail",
		data
	})
}


//添加房屋
export function addHouse(data) {
	return request({
		url: "/house/add",
		method: 'post',
		data
	})
}
//添加房屋
export function addRoom(data) {
	return request({
		url: "/house/room/add",
		method: 'post',
		data
	})
}

export function contract(id) {
	return request({
		url: `/tenant/contract/${id}`,
	})
}

//退租
export function surrender(data) {
	return request({
		url: "/house/house/room/surrender",
		method: 'post',
		data
	})
}